home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
DJLSR111.ZIP
/
libsrc
/
c
/
gen
/
getlogin.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-24
|
345b
|
20 lines
/*
(c) Copyright 1992 Eric Backus
This software may be used freely so long as this copyright notice is
left intact. There is no warrantee on this software.
*/
#include <std.h>
char *
getlogin(void)
{
char *p;
p = getenv("USER");
if (!p) p = getenv("LOGNAME");
if (!p) p = "dosuser";
return p;
}